import request from '@/utils/request'

// 查询预约规则列表
export function listYuyueguize(query) {
  return request({
    url: '/tc/yuyueguize/list',
    method: 'get',
    params: query
  })
}

// 查询预约规则详细
export function getYuyueguize(id) {
  return request({
    url: '/tc/yuyueguize/' + id,
    method: 'get'
  })
}

// 新增预约规则
export function addYuyueguize(data) {
  return request({
    url: '/tc/yuyueguize',
    method: 'post',
    data: data
  })
}

// 修改预约规则
export function updateYuyueguize(data) {
  return request({
    url: '/tc/yuyueguize',
    method: 'put',
    data: data
  })
}

// 删除预约规则
export function delYuyueguize(id) {
  return request({
    url: '/tc/yuyueguize/' + id,
    method: 'delete'
  })
}


// 初始化预约规则
export function initYuyueguize(id) {
  return request({
    url: '/tc/yuyueguize/initgz/'+id,
    method: 'get'
  })
}